import { Module, SetMetadata } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ApiTags } from '@nestjs/swagger';
import { MODULE_PATH } from '@nestjs/common/constants';
// entities
import { UserEntity } from './entities';
// services
import { UserService } from './user.service';
import { UserController } from './user.controller';

@Module({
  imports: [TypeOrmModule.forFeature([UserEntity])],
  providers: [UserService],
  exports: [UserService],
  controllers: [UserController],
})
@ApiTags('system')
@SetMetadata(MODULE_PATH, 'system')
export class UserModule {}
